/**
 * Author: Elysia Haight
 * 
 * This class stores medical profile data
 */
package com.dietdroid;

import java.io.Serializable;
import java.util.*;

public class ProfileData implements Serializable {
	
	
	private static final long serialVersionUID = -1006047672752841295L;
	private int maxCals;
	private int minCals;
	private int maxFat;
	private int minFat;
	private int maxChol;
	private int minChol;
	private int maxSugar;
	private int minSugar;
	private int maxCarbs;
	private int minCarbs;
	private int maxProtein;
	private int minProtein;
	private int maxSodium;
	private int minSodium;
	
	private ArrayList<String> allergenList;
	
	public ProfileData()
	{
		maxCals = 2000;
		minCals = 0;
		maxFat = 65;
		minFat = 0;
		maxChol = 300;
		minChol = 0;
		maxSugar = 100;
		minSugar = 0;
		maxCarbs = 300;
		minCarbs = 0;
		maxProtein = 50;
		minProtein = 0;
		maxSodium = 2400; 
		minSodium = 0;
		allergenList = new ArrayList<String>();
	}
	
	public int getMaxCals()
	{
		return maxCals;
	}
	
	public void setMaxCals(int newMax)
	{
		maxCals = newMax;
	}
	
	public int getMinCals()
	{
		return minCals;
	}
	
	public void setMinCals(int newMin)
	{
		minCals = newMin;
	}
	

	public int getMaxFat()
	{
		return maxFat;
	}
	
	public void setMaxFat(int newMax)
	{
		maxFat = newMax;
	}
	
	public int getMinFat()
	{
		return minFat;
	}
	
	public void setMinFat(int newMin)
	{
		minFat = newMin;
	}
	
	
	public int getMaxChol()
	{
		return maxChol;
	}
	
	public void setMaxChol(int newMax)
	{
		maxChol = newMax;
	}
	
	public int getMinChol()
	{
		return minChol;
	}
	
	public void setMinChol(int newMin)
	{
		minChol = newMin;
	}
	
	public int getMaxSugar()
	{
		return maxSugar;
	}
	
	public void setMaxSugar(int newMax)
	{
		maxSugar = newMax;
	}
	
	public int getMinSugar()
	{
		return minSugar;
	}
	
	public void setMinSugar(int newMin)
	{
		minSugar = newMin;
	}
	
	public int getMaxCarbs()
	{
		return maxCarbs;
	}
	
	public void setMaxCarbs(int newMax)
	{
		maxCarbs = newMax;
	}
	
	public int getMinCarbs()
	{
		return minCarbs;
	}
	
	public void setMinCarbs(int newMin)
	{
		minCarbs = newMin;
	}

	public int getMaxProtein()
	{
		return maxProtein;
	}
	
	public void setMaxProtein(int newMax)
	{
		maxProtein = newMax;
	}
	
	public int getMinProtein()
	{
		return minProtein;
	}
	
	public void setMinProtein(int newMin)
	{
		minProtein = newMin;
	}
	
	public int getMaxSodium()
	{
		return maxSodium;
	}
	
	public void setMaxSodium(int newMax)
	{
		maxSodium = newMax;
	}
	
	public int getMinSodium()
	{
		return minSodium;
	}
	
	public void setMinSodium(int newMin)
	{
		minSodium = newMin;
	}
	
	public ArrayList<String> getAllergens()
	{
		return allergenList;
	}
	
	public void setAllergenList(ArrayList<String> newList)
	{
		allergenList = newList;
	}
	
	public void addAllergen(String allergen)
	{
		allergenList.add(allergen);
	}
	
	public void removeAllergen(int index)
	{
		allergenList.remove(index);
	}
	
}
